package com.ydsungan.service;

import com.ydsungan.pojo.*;

import java.text.ParseException;
import java.util.List;

public interface HomeService {
    List<Inform> listInform(InformExample informExample);
    long countByExample(DailyQuestionExample dailyQuestionExample);
    DailyQuestion selectById(Integer id);
    int insertDaily(Daily daily);
    List<Daily> selectDailyByExample(DailyExample dailyExample);
    int hasLikedDaily(String openId, Integer dailyId);
    int hasCollectedDaily(String openId, Integer dailyId);
    int countDailyLikeNum(int contentId);
    int countDailyCollectNum(int contentId);
    void addDailyLike(String openId, int contentId);
    void addDailyCollect(String openId, int contentId, String type);
    List<Integer> getReviewDaysList(String openId, Integer bookId) throws ParseException;
    int countErrorQuestionNum(String openId, Integer bookId) throws ParseException;
    void feedBack(Feedback feedback);
    List<Version> listVersionRecords();
    List<CollectVO> listCollect(String openId);
    int insertShareRecord(Share share);
    List<Share> listShare(String openId);
}
